/*
 * @Author: thats-all-right-ha-ha 8280209+thats-all-right-ha-ha@user.noreply.gitee.com
 * @Date: 2024-02-19 14:20:10
 * @LastEditors: thats-all-right-ha-ha 8280209+thats-all-right-ha-ha@user.noreply.gitee.com
 * @LastEditTime: 2024-02-21 16:25:10
 * @FilePath: \hrManage\src\api\user.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import instance from '@/utils/request'
export const login = (data) => {
  console.log(data)
  return instance.post('/sys/login', {
    mobile: data.name,
    password: data.password
  })
}

export const getUserInfo = () => {
  return instance.get('/sys/profile')
}

export const updatePassword = (data) => {
  console.log(data)
  return instance({
    url: '/sys/user/updatePass',
    method: 'put',
    data
  })
}
